ThesfFileUrlField is a directive that enables you to choose a file with a certain extension from your SitefinityWebApp folder and returns the file's URL. You must pass an extension and all files displayed are with this extension. The extensions you may use are CSS, JS, and HTML. The sfFileUrlField directive is defined in a module with the same name: sfFileUrlField.
The sfFileUrlField directive exposes the following attributes:
The following example demonstrates how to add asfFileUrlField directive in a widget designer's view.
To enable AngularJs to link the sfFileUrlField directive in your custom designer view, you must load the script of the directive and add a dependency to the module:
In the code above, the URL of the selected CSS is stored in the $scope.fileUrl variable.
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important
Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.
Progress, Telerik, Ipswitch, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.
Powered by Progress Sitefinity