forked from liferay/clay
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes liferay#1268 - Extract ClayDropdownItem to a component
- Loading branch information
1 parent
ea8c79b
commit ee2ff9c
Showing
5 changed files
with
372 additions
and
291 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import 'clay-button'; | ||
import 'clay-checkbox'; | ||
import 'clay-icon'; | ||
import 'clay-link'; | ||
import 'clay-radio'; | ||
import './ClayDropdownBase'; | ||
import ClayComponent from 'clay-component'; | ||
import defineWebComponent from 'metal-web-component'; | ||
import Soy from 'metal-soy'; | ||
import {Config} from 'metal-state'; | ||
|
||
import templates from './ClayDropdownItem.soy.js'; | ||
|
||
/** | ||
* Implementation of the Metal Clay Icon. | ||
* @extends Component | ||
*/ | ||
class ClayDropdownItem extends ClayComponent {} | ||
|
||
/** | ||
* State definition. | ||
* @static | ||
* @type {!Object} | ||
*/ | ||
ClayDropdownItem.STATE = { | ||
/** | ||
* Data to add to the element. | ||
* @default undefined | ||
* @instance | ||
* @memberof ClayDropdownItem | ||
* @type {?object} | ||
*/ | ||
data: Config.object(), | ||
}; | ||
|
||
defineWebComponent('clay-dropdown-item', ClayDropdownItem); | ||
|
||
Soy.register(ClayDropdownItem, templates); | ||
|
||
export {ClayDropdownItem}; | ||
export default ClayDropdownItem; |
Oops, something went wrong.