Child pages
  • Client Design Mode

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
javascript
javascript
elements\['element_1'\].putClientProperty(CLIENTDESIGN.SELECTABLE, false);
Handles

BBy default the elements have all the handles if they are selectable. Image Added
It is possible to set specific handles for example only left and right if you want the user to be able to change the width of the element but not the height.

Sample:

Wiki Markup
//by default all are present. ('l' stands for left, 't' stands for top, etc.) elements\['element_1'\].putClientProperty(CLIENTDESIGN.HANDLES, new Array('r', 'l')); // other options are 

The options are:

Option

Stands for

't'

...

Top

'b'

...

Bottom

'r'

...

Right

'l'

...

Left

'bl'

...


Bottom left corner

'br'

...


Bottom right corner

'tl'

...


Top left corner

'tr'

Top right corner