view.ludo.dom Class
Class/Object with DOM utility methods.
Item Index
Methods
clearCacheStyles
Clear cached padding,border and margins.
()
getBH
-
el
Return Border height (top and bottom) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
Object
getBW
-
el
Return Border width (left and right) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
ObjectDOMElement or id of DOMElement
getMeasuredWidth
-
view
Return measured width of a View
Parameters:
-
view
ludo.View
Returns:
getMH
-
el
Return Margin height (top and bottom) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
Object
getMW
-
el
Return Margin width (left and right) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
Object
getPH
-
el
Return Padding height (top and bottom) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
ObjectDOMElement or id of DOMElement
getPW
-
el
Return Padding Width (left and right) of DOM element Once retrieved, it will be cached for later lookup. Cache can be cleared by calling clearCacheStyles
Parameters:
-
el
Object