Example implementation of RequiredTrueValidator that can be used on custom checkbox component. Angular has a bug that prevents such custom checkboxes from being required
validated properly (angular/angular#17495). In following example `` is a name of my custom checkbox field which implements ControlValueAccessor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$w.onReady(function () { | |
$w('#repeater2').onItemReady(($item, itemData, index) => { | |
var indices = [16,17]; | |
for(var i = 0; i < indices.length; ++i){ | |
var index = indices[i]; | |
$item('#text' + index).onClick(() => { | |
wixLocation.to(itemData.postPageUrl); | |
}); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.4.11 on 2017-02-14. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |