instance method Element.Layout#toCSS
Element.Layout#toCSS([keys...]) → Object
-
keys
(String
) – A space-separated list of keys to include.
Converts the layout hash to a plain object of CSS property/value pairs, optionally including only the given keys.
Keys can be passed into this method as individual arguments _or_ separated by spaces within a string.
// Equivalent statements:
someLayout.toCSS('top', 'bottom', 'left', 'right');
someLayout.toCSS('top bottom left right');
Useful for passing layout properties to Element.setStyle
.