Skip to content

Instantly share code, notes, and snippets.

@jennevdmeer
jennevdmeer / Example.php
Last active Feb 10, 2020
Symfony IsRepeated validator.
View Example.php
<?php
...
/**
* @Assert\NotBlank(message="account.password.not_blank")
* @Assert\Length(min=3, minMessage="account.password.length.min")
* @IsRepeated(message="account.password.not_equal", property="passwordRepeated")
*/
public $password = null;
@jennevdmeer
jennevdmeer / Component.vue
Last active Jul 5, 2019
Vue self removing initializer with external props
View Component.vue
<template>
<div>
{{ foo }}
{{ helloWorld }}
</div>
</template>
<script>
export default {
name: 'entry-component',
View 1 PromiseButton.md

promise is the promise object, this property is being watched so will reset on change. And default to default if none is provided.

reset on 0 wont reset the button's finaly state, however when a number is entered it will reset to 'default' after said timeout is finished.

disable can be used to disabled the button (button also disables itself while loading, so need to do

You can’t perform that action at this time.