SelectDecorator kind for styling select elements

edited March 2012 in Enyo 2
For one of my current projects I needed a way to style select elements so I came up with a SelectDecorator kind that can be wrapped around Select kinds to provide onyx-like styling. It works similar to the InputDecorator kind:
{kind: "onyx.custom.SelectDecorator", components: [
	{kind: "Select", components: [
		{content: "one"},
		{content: "two"},
		{content: "three"}
The result looks like this:


Note that the SelectDecorator does not style the actual selection popup. Well, there is now way to change that so you'll just have to live with it.

The code, as always, is hosted on Github:



Sign In or Register to comment.