27 var
$icon =
'dashicons-editor-ol';
30 $this->label = esc_html__(
'Number',
'gk-gravityview' );
31 parent::__construct();
36 $field_options[
'number_format'] = array(
38 'label' => __(
'Format number?',
'gk-gravityview' ),
39 'desc' => __(
'Display numbers with thousands separators.',
'gk-gravityview'),
44 $field_options[
'decimals'] = array(
46 'label' => __(
'Decimals',
'gk-gravityview' ),
47 'desc' => __(
'Precision of the number of decimal places. Leave blank to use existing precision.',
'gk-gravityview'),
49 'merge_tags' =>
false,
53 return $field_options;
Modify field settings by extending this class.
field_options( $field_options, $template_id, $field_id, $context, $input_type, $form_id)
if(empty( $created_by)) $form_id
new GravityView_Field_Number
if(false !==strpos( $value, '00:00')) $field_id
string $field_id ID of the field being displayed
Add custom options for number fields.