Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
angular-formly-material
Advanced tools
Material Design Templates for Angular-Formly. Modern & flexible forms configured easily in a JSON object.
npm install angular-formly-material
bower install angular-formly-material
meteor add wieldo:angular-formly-templates-material
angular.module('myAppName', [
'formlyMaterial'
])
Any requests? Add issue!
md-theme attribute
{
"type": "input",
"key": "firstName",
"templateOptions": {
"type": "text",
"label": "First name",
"theme": "custom"
}
}
rows (number, optional)
{
"type": "textarea",
"key": "bio",
"templateOptions": {
"label": "Biography",
"theme": "custom",
"rows": 5
}
}
options (array, requred)
labelProp (string, optional)
valueProp (string, optional)
{
"type": "radio",
"key": "name",
"templateOptions": {
"label": "Name",
"theme": "custom",
"labelProp": "firstName",
"valueProp": "id",
"options": [
{"firstName": "Sarah", id: 1},
{"firstName": "Jessica", id: 2},
{"firstName": "Parker", id: 3}
]
}
}
options (array, requred)
labelProp (string, optional)
valueProp (string, optional)
multiple (boolean, optional)
{
"type": "select",
"key": "name",
"templateOptions": {
"label": "Name",
"theme": "custom",
"multiple": true,
"labelProp": "firstName",
"valueProp": "id",
"options": [
{"firstName": "Sarah", id: 1},
{"firstName": "Jessica", id: 2},
{"firstName": "Parker", id: 3}
]
}
}
{
"type": "checkbox",
"key": "terms",
"templateOptions": {
"label": "Terms and Conditions",
"theme": "custom"
}
}
{
"type": "switch",
"key": "terms",
"templateOptions": {
"label": "Terms and Conditions",
"theme": "custom"
}
}
placeholder (string, optional)
md-placeholder
minDate (Date, optional)
md-min-date
maxDate (Date, optional)
md-max-date
filterDate (function, optional)
md-filter-date
{
"type": "datepicker",
"key": "start",
"templateOptions": {
"theme": "custom",
"placeholder": "Start date",
"minDate": minDate, // instance of Date
"maxDate": maxDate, // instance of Date
"filterDate": function(date) {
// only weekends
var day = date.getDay();
return day === 0 || day === 6;
}
}
}
placeholder (string, optional)
placeholder attribute value
secondaryPlaceholder (string, optional)
secondary-placeholder attribute value
deleteButtonLabel (string, optional)
delete-button-label attribute value
deleteHint (string, optional)
delete-hint attribute value
{
"type": "chips",
"key": "tags",
"templateOptions": {
"theme": "custom",
"placeholder": "+tags",
"secondaryPlaceholder": "Add tag",
"deleteButtonLabel": "Remove",
"deleteHint": "Remove tag"
}
}
min (number, optional)
default 1
max (number, optional)
default 100
step (number, optional)
default 1
discrete (boolean, optional)
default false (md-discrete)
{
"type": "slider",
"key": "rate",
"templateOptions": {
"theme": "custom",
"min": 1,
"max": 5,
"step": 0.5,
"discrete": true
}
}
Requests (?). Post an issue.
0.7.0 - 2015-11-29
FAQs
Material design templates for angular-formly
The npm package angular-formly-material receives a total of 56 weekly downloads. As such, angular-formly-material popularity was classified as not popular.
We found that angular-formly-material demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.