2017 © Pedro Peláez
 

library autocomplete

AutoComplete field add-on for Agile Toolkit (ATK4)

image

darkside666/autocomplete

AutoComplete field add-on for Agile Toolkit (ATK4)

  • Tuesday, February 6, 2018
  • by DarkSide666
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,072 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 11 % Grown

The README.md

AutoComplete field add-on for Agile Toolkit 4.3+

This will replace standard drop-down field with an auto-complete field., (*1)

Screenshot, (*2)

Requirement

  • PHP >=5.4
  • ATK4 >=4.3

Installing via Composer

The recommended way to install this add-on is through Composer., (*3)

# Install Composer
curl -sS https://getcomposer.org/installer | php

Next, update your project's composer.json file to include AutoComplete:, (*4)

{
    "require": {
        "darkside666/autocomplete": "dev-master"
    }
}

Usage

In your Frontend->init() add following lines:, (*5)

    // allow add-ons to reside in /vendor folder
    $this->addLocation(['addons' => ['../vendor']])
        ->setBasePath($this->pathfinder->base_location->getPath());

    // HACK: force call Initiator of all used add-ons :)
    foreach (['darkside666/autocomplete'] as $addon) {
        $this->add("$addon\Initiator");
    }

And then you're ready to use this add-on like this:, (*6)

    // In model
    $model->hasOne('User')->display(['form'=>'darkside666/autocomplete/Basic']);

    // Or directly in form
    $field = $form->addField('darkside666/autocomplete/Basic');
    $field->setModel('User');

The Versions

06/02 2018

dev-master

9999999-dev https://github.com/darkside666/autocomplete

AutoComplete field add-on for Agile Toolkit (ATK4)

  Sources   Download

MIT AGPL

The Requires

 

by Imants Horsts

autocomplete agile atk4 toolkit