warrenbuckley / YouTube-Umbraco

YouTube for Umbraco
12 stars 17 forks source link

Min & Max - Optional PreValues #2

Closed warrenbuckley closed 10 years ago

warrenbuckley commented 10 years ago

Optional PreValues (Min items & Max Items)

If checkbox enabled then show a textbox for a number of items. Validation for this PreValue requires that the number must be greater than 0

If Min or Max is not checked then don't worry about using in property editor

See this as reference: https://github.com/umbraco/Umbraco-CMS/blob/7.1.5/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.html

http://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/46988-Custom-property-editors-how-to-stop-a-page-from-being-saved