.presentationUiUploader()
Categories: UI
.presentationUiUploader( [ options ] )
Subclass: de_epages
Inherit: (Subclass: de_epages) .widget()
Plugin: de_epages.presentation.ui.uploader
Description: Create an uploader.
-
.presentationUiUploader( [ options ] )
version added: 6.12.0options A map of additional options pass to the method.
The .presentationUiUploader()
method make an element editable on click the element.
Only applicable to <input type="file"> nodes.
-
Loads the Uploader to an input field to upload images.l,
Code:
<input type="file" name="NewFile" class="ep-js" data-js="de_epages.presentationUiUploader({ multiple:false, accept:'image/*', big:true, data:{ ChangeAction:'SaveImage', ObjectID:#ObjectID, SCALE_WIDTH_l:#Shop.ProductImageLargeWidth, SCALE_HEIGHT_l:#Shop.ProductImageLargeHeight, SCALE_WIDTH_m:200, SCALE_WIDTH_s:100, SCALE_HEIGHT_s:100, SCALE_WIDTH_h:150, SCALE_HEIGHT_h:150, SCALE_WIDTH_xs:50, SCALE_HEIGHT_xs:33, SCALE_NAME_m:'ImageMedium', SCALE_NAME_s:'ImageSmall', SCALE_NAME_h:'ImageHotDeal' }, callback:'?ViewAction='+ep.config.viewAction+'&ObjectID='+ep.config.objectId+'&DialogArea=ViewArea' })"/>
-
destroy
-
.presentationUiUploader('destroy')
version added: 6.12.0
This method removes the container on which the Uploader has been appended to.
-