Hobo Cookbook

View Source

Rapid

<select-one-editor>

Provides a <select> menu with an ajax callback to update a belongs_to relationship when changed. By default the menu contains every record in the target model’s table.

Attributes

  • include-none: Should the menu include a “none” option (true/false). Defaults: false, or true if the association is nil at render-time.

  • blank-message: The text for the “none” option. Default: “(No Product)” (or whatever the model name is)

  • sort: Sort the options (true/false)? Default: false

  • update: one or more DOM ID’s (comma separated string or an array) to be updated as part of the ajax call.

    NOTE: yes that’s DOM ID’s not part-names. A common source of confusion because by default the part name and DOM ID are the same.

Show Source

Comments

No comments to display