Kind: global class
Npmpackage:
Properties
Name | Type | Description |
---|---|---|
id | string |
Element id. |
target | element |
DOM Element in which to create this border. |
size | number |
Border thickness. |
color | string |
Hex code representing border color. |
This is a display object class, extending UIDiv which adds a border to a div.
Import from ad-ui
Param | Type |
---|---|
arg | object |
Example
import { UIBorder } from 'ad-ui'
// simple button that passes in an image to the bg and 2 images as the icons for the different states of the button. Notice no width or height is set.
var myBorder = new UIBorder({
id : 'my-border',
target : View.main,
size : 1,
color : '#ff0000'
})
Getter|Setter : A Number representing the size of the border in pixels.
Kind: static property of UIBorder
Example
// SET
myBorder.size = 4;
// GET
console.log( myBorder.size )
Getter|Setter : A String representing the color of the border.
Kind: static property of UIBorder
Example
// SET
myBorder.color = '#fff000'
// GET
console.log(myBorder.color)