Skip to content

Raw HTML & CSS

Brandon Jordan edited this page Aug 30, 2022 · 12 revisions

This is for features that are not yet implemented in jsUI, but also for custom HTML components, very specific CSS properties, etc.

Raw CSS

If you need to drill in further and apply your own raw CSS to the page, use the addCSS() function.

jsUI.addCSS({
	'selector': {
		'property': 'value'
	}
});

Raw HTML

If you need to drill in further and apply your own raw HTML to the page, use the Tag() element. To apply custom attributes use the attribute() method. You can also apply custom CSS properties using the property() method.

jsUI.view([
    Tag('div')
        .attribute('attribute','value')
        .property('property','value');
]);
Clone this wiki locally