Skip to content

Commit

Permalink
Breaking: remove the wrapperType to use the inline API | Fixes lifera…
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles authored and Kien Do committed Feb 21, 2018
1 parent c8f1f7a commit 1dfb206
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions packages/clay-select/src/ClaySelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@ ClaySelect.STATE = {
*/
id: Config.string(),

/**
* Flag to indicate if select should be wrapped to be inline or not.
* In order to make inline work properly you may place it inside
* a .form-group-autofit container.
* @instance
* @memberof ClaySelect
* @type {?bool}
* @default false
*/
inline: Config.bool().value(false),

/**
* Label of the select element.
* @instance
Expand Down Expand Up @@ -84,18 +95,6 @@ ClaySelect.STATE = {
value: Config.string().required(),
})
).required(),

/**
* Type of the select wrapper element.
* In order to make inline-group work properly you may place it inside
* a .form-inline.form-inline-autofit container.
* container.
* @instance
* @memberof ClaySelect
* @type {?string|undefined}
* @default group
*/
wrapperType: Config.oneOf(['inline-group', 'group']).value('group'),
};

defineWebComponent('clay-select', ClaySelect);
Expand Down

0 comments on commit 1dfb206

Please sign in to comment.