chore: 🤖 add select field component
This commit is contained in:
12 files changed
+335
-2
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import Component from '@ember/component';
|
||||
import layout from '../../../templates/components/rose/form/select';
|
||||
|
||||
/**
|
||||
* A `<select>` element context component which yields option components.
|
||||
*
|
||||
* @example
|
||||
* <Rose::Form::Select
|
||||
* @id="select-id-1"
|
||||
* name="select-field-name"
|
||||
* @value="current-value"
|
||||
* @label="Label"
|
||||
* @helperText="Helper text"
|
||||
* @error={{true}}
|
||||
* @onChange={{fn this.selectChange}}
|
||||
* disabled={{true}}
|
||||
* as |select|
|
||||
* >
|
||||
* <select.option>Choose an option</select.option>
|
||||
* <select.option @value="current-value">Curret value</select.option>
|
||||
* </Rose::Form::Select>
|
||||
*/
|
||||
export default Component.extend({
|
||||
layout,
|
||||
|
||||
tagName: '',
|
||||
});
|
||||
Reference in new issue
Block a user