madeyourday / contao-rocksolid-custom-elements

RockSolid Custom Elements Contao Extension
http://rocksolidthemes.com/de/contao/plugins/custom-content-elements
MIT License
48 stars 12 forks source link

Width and Height constraint in custom element #67

Closed MartianGreed closed 7 years ago

MartianGreed commented 8 years ago

Hello,

i've been working for days with your extension and it's such a pleasure to work with it!! I am currently in need to add a constraint for height and width, i don't know if it's possible now to do this at the moment?!

Have you got an idea?

ausi commented 8 years ago

You can define maximum and minimum values in the evaluation array, e.g.:

'eval' => array(
    'minval' => 10,
    'maxval' => 100,
),

More information about Contao DCAs can be found in the Contao documentation: https://docs.contao.org/books/api/dca/reference.html#evaluation.