CSSPosition
Overview
The CSSPosition
interface in the Servoy environment provides methods for managing and manipulating CSS position properties such as left
, right
, top
, bottom
, width
, and height
. It allows both getting and setting these properties in pixels or percentages, with chaining methods for streamlined updates. The interface supports use cases in Servoy NG Client only.
Properties Summarized
Methods Summarized
Properties Detailed
bottom
Get/Set bottom css position (in pixels or percent).
Type String The bottom CSS position as a string, in pixels or percentage.
Sample
height
Get/Set height css position (in pixels or percent).
Type String The height CSS position as a string, in pixels or percentage.
Sample
left
Get/Set left css position (in pixels or percent).
Type String The left CSS position as a string, in pixels or percentage.
Sample
right
Get/Set right css position (in pixels or percent).
Type String The right CSS position as a string, in pixels or percentage.
Sample
top
Get/Set top css position (in pixels or percent).
Type String The top CSS position as a string, in pixels or percentage.
Sample
width
Get/Set width css position (in pixels or percent).
Type String width css position
Sample
Methods Detailed
b(bottom)
Set bottom css position (in pixels or percent).
Parameters
String bottom bottom position in pixels or percentage
Returns: CSSPosition css position
Sample
h(height)
Set height css position (in pixels or percent).
Parameters
String height height position in pixels or percentage
Returns: CSSPosition css position
Sample
l(left)
Set left css position (in pixels or percent).
Parameters
String left left position in pixels or percentage
Returns: CSSPosition css position
Sample
r(right)
Set right css position (in pixels or percent).
Parameters
String right right position in pixels or percentage
Returns: CSSPosition css position
Sample
t(top)
Set top css position (in pixels or percent).
Parameters
String top top position in pixels or percentage
Returns: CSSPosition css position
Sample
w(width)
Set width css position (in pixels or percent).
Parameters
String width width position in pixels or percentage
Returns: CSSPosition css position
Sample
Last updated
Was this helpful?