Skip to content

Latest commit

 

History

History
70 lines (55 loc) · 1.62 KB

UIBorder.md

File metadata and controls

70 lines (55 loc) · 1.62 KB

UIBorder

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.

new UIBorder(arg)

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'
})

UIBorder.size

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 )

UIBorder.color

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)