carbon-fields icon indicating copy to clipboard operation
carbon-fields copied to clipboard

Slider-Field-Type

Open breath-ee opened this issue 8 years ago • 2 comments

Version

  • Carbon Fields: 2.2.0
  • WordPress: 4.9
  • PHP: 7

Slider-Field-Type

Source:

  • https://github.com/mattkrupnik/cmb2-field-slider

breath-ee avatar Apr 26 '18 15:04 breath-ee

This is somewhat supported with the HTML5 range field type:

Field::make( 'text', 'crb_example_slider', __( 'Example Slider' ) )
    ->set_attribute( 'type', 'range' );

Though, it is unstyled and does not display the value. You'd have to use some JavaScript to do that, presently.

This might be a "good first issue" candidate using the carbon-field-template.

dmhendricks avatar Apr 27 '18 16:04 dmhendricks

Thanks dmhendricks. Not entirely sure of how dated the cmb2-field-slider script is.

They where just a couple field styles that I've seen on some custom theme option pages, also happened to be used with CMB2, all before I found Carbon Fields!

breath-ee avatar Apr 28 '18 11:04 breath-ee