-
Notifications
You must be signed in to change notification settings - Fork 135
Directives
Michał edited this page Feb 26, 2016
·
7 revisions
Available attributes:
- formData - object with form definition (required)
- readOnly - boolean (optional)
- options - additional options object (optional)
- onImageSelection - callback on image selection button click, has to return promise with image src (optional)
- api - API object (optional)
Array of strings. Used to specify available question types.
All possible values:
['text', 'textarea', 'radio', 'checkbox', 'grid', 'priority', 'division', 'number', 'date', 'time', 'datetime', 'email', 'range', 'url']
Simple example:
options.onImageSelection = function (){
var d = $q.defer();
var src = prompt("Please enter image src");
if(src !=null){
d.resolve(src);
}else{
d.reject();
}
return d.promise;
};
Available methods:
- reset()
Attributes:
- formData - object with form definition (required)
- responseData - object with response data (required)
- onSubmit - form submit callback, has to return promise (required)
- readOnly - boolean (optional)
- options - additional options object (optional)
- formStatus - object, wrapper for parent angular form object (optional)
- api - API object (optional)
Available methods:
- reset()