Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
vue-formly-buefy
Advanced tools
Vue.js plugin that covers the Buefy form fields for Formly. It lets you to validate input data in your forms. The plugin combine simplicity of the Formly form builder, lightness of the Buefy form fields and impeccability of the Bulma design.
Brief description of the most meaningful features:
The plugin was developed and tested for the following packages:
First of all install necessary dependencies (see above) and vue-formly-buefy itself:
$ npm i vue-formly-buefy
After, integrate the plugin with your project:
import Buefy from 'buefy'
import Vue from 'vue'
import VueFormly from 'vue-formly'
import VueFormlyBuefy from 'vue-formly-buefy'
Vue.use(Buefy)
Vue.use(VueFormly)
Vue.use(VueFormlyBuefy) // Plug in directly after Vue Formly
new Vue({
el: '#app'
})
That's all :D
Look at the following example of the wrapped input with a span control:
<template>
<formly-form :form="form" :model="model" :fields="fields"></formly-form>
</template>
<script>
// Import the span control from the library
import { Span } from 'vue-formly-buefy/dist/controls'
export default {
data () {
return {
form: {},
model: {
email: ''
},
fields: [
{
key: 'email',
type: 'input-with-field', // Use a wrapper to extend functionality
templateOptions: {
properties: { // Keep configuration of the element
'placeholder': 'Your email'
},
wrapper: { // Keep configuration of the wrapper
controls: [
{
type: Span, // Use the Span component as a control
position: 'after',
options: { // Keep configuration of the control
label: '@gmail.com',
properties: {
'class': 'button is-static'
}
}
}
]
}
}
}
]
}
}
}
</script>
The code above will generate the following Buefy markup (then Vue.js will have compiled this markup to HTML as expected):
<b-field>
<b-input placeholder="Your email"></b-input>
<div class="control">
<span class="button is-static">@gmail.com</span>
</div>
</b-field>
Search for more examples here.
Check wiki section of this repo for detailed API explanation.
Copyright (c) 2017-2019 Yurii Rabeshko. Code released under the MIT license.
FAQs
Simple way to validate input data in your forms.
We found that vue-formly-buefy 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.