-
Notifications
You must be signed in to change notification settings - Fork 68
SDK Elements
All basic elements have default base settings and then a collection of CSS classes, maintained by the elements settings, to adjust formatting and styling. The majority of settings will apply to each element and only specific settings that provide specialized styling based on the setting class will be displayed below.
Small and Tiny sizing the label and altLabel are hidden by default.
{type:'bar', color:'bg-blue-1', label:'14', size:'medium'}
{size:'xlarge | large | medium | small | tiny'}
Generally non-mouse/touch interactive.
{type:'block', color:'bg-blue-1', label:'14'}
No Special Settings
{type:'button', color:'bg-blue-1', label:'14', altLabel:'Energy Level'}
{version:'round | round-right | round-left'}
Label and altLabel will be hidden by default on the small, medium and tiny sizing.
{type:'cap', color:'bg-blue-1', version:'round-right', size:'medium'}
{version:'round | round-right | round-left'}
{size:'xlarge | large | medium | small | tiny'}
These buttons are a parent container with child elements: Buttons, Blocks, Text, Caps & Child Complex Buttons.
Mouse/Touch events can be applied to the parent wrapper when passed through its settings definition or can be attached to individual elements. Nesting of Complex Buttons within complex buttons is perfectly acceptable.
{type:'complexButton', children:[{...}, {...}, {...}]}
{colors:['array', 'of', 'color', 'strings'}
{type:'elbow', direction:'bottom-left', color:'bg-blue-1', label:'LCARS'}
{size:'base | small | medium | large'}
{version:'horizontal | vertical'}
{direction:'top-left | top-right | bottom-right| bottom-left'}
The endcap comes with a default rounding and skew angle. Override by using the additional settings. The offset
setting is utilized because the CSS transform skew will create white space between the child DOM object and the endcap wrapper.
{type:'endcap', version:'bottom-left', color:'bg-blue-1', label:'LCARS'}
{version:'top-left | top-right| bottom-right| bottom-left |'}
{skew:string | '15deg'}
{offset:string | '15px'}
{roundTop:string | '15px' | '15%'}
{roundBottom:string | '15px' | '15%'}
This is to generate non-LCARS based DOM elements, like input fields or non-LCARS based templates for data.
{type:'htmlTag', tag:'div', children:'<h2>Some Text</h2>'}
{type:'img', src:'../folder-name/image.png'}
{type:'oval', color:'bg-blue-1', size:'small'}
{type:'svg', xml:'<svg>...</svg>'}
{type:'text', color:'bg-text-1', text:'Some Text'}
{type:'title', color:'bg-text-1', text:'Some Text'}
{size:'small | half'}
These elements are for layout purposes and mainly exist for more efficient CSS styling.
- aside
- details
- footer
- header
- main
- nav
- section
{type:'aside', flex:'v', children:[{...},{...},{...}]}
{type:'header', flex:'h', children:[{...},{...},{...}]}
{type:'section', class:{someClass:true}, children:[{...},{...},{...}]}
- column | .column
- content | .content
- row | .row
- wrapper | .wrapper
{type:'column', flex:'v', children:[{...},{...},{...}]}
{type:'row', flex:'h', children:[{...},{...},{...}]}
{type:'content', class:{someClass:true}, children:[{...},{...},{...}]}
Column and row elements have default styling applied for child spacing at 5px. Row elements by default have the flex setting enabled by default through its CSS class.