Q: I have:
<?php echo $api->widget->getScriptTag(); ?>
<form method="POST" action="upload.php">
<?php echo $api->widget->getInputTag('qs-file'); ?>
<input type="submit" value="Save!">
</form>
My question is how do I manipulate the getScriptTag();
to configure my widget? I.e. only images, only one upload, crop, etc.
A: There is the second argument of the getInputTag
method. You can pass additional attributes there:
<?php echo $api->widget->getInputTag('qs-file', array(
"data-crop" => "4:3",
"data-images-only" => "true",
)); ?>