novafieldcheckboxes icon indicating copy to clipboard operation
novafieldcheckboxes copied to clipboard

Display Help text and utilize Nova Field markup for Validation Error message

Open duckzland opened this issue 3 years ago • 0 comments

Use Case:

  • Utilizing nova field method : ->help() for displaying help text.
  • As a bonus, remove the old error text and fallback to nova field default error text markup.

Changes:

  • Updated package.json to the latest possible version without breaking vue too much
  • adapt field.js to compensate the new vue loading mechanism
  • small bug fix to check for this.value to prevent this.value undefined error
  • add the new nova default errors and show-help-text so value from ->help() can be displayed properly
  • rebuild the dist js and css [empty for now, not sure if this is intended?]

EDIT

  • added capability to disable some of the fields using method disabled
    ->disabled([ 'myoption_value1', 'my_option_value_2' ])
  • added capability to make every checkboxes into readonly using nova field default readonly()
    ->readonly()

duckzland avatar Feb 19 '22 15:02 duckzland