Skip to content

Instantly share code, notes, and snippets.

View partyka1's full-sized avatar
🎯
Focusing

partyka1

🎯
Focusing
  • London, United Kingdom
View GitHub Profile
@partyka1
partyka1 / melania.js
Created February 24, 2020 13:16
melania koduje
$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);
});
}
});

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

@partyka1
partyka1 / _ide_helper.php
Created April 9, 2017 18:18 — forked from barryvdh/_ide_helper.php
Laravel IDE Helper for Netbeans / PhpStorm / Sublime Text 2 CodeIntel, generated using https://github.com/barryvdh/laravel-ide-helper
<?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 <barryvdh@gmail.com>
* @see https://github.com/barryvdh/laravel-ide-helper
*/
namespace {
exit("This file should not be included, only analyzed by your IDE");