Plugins para Adianti Framework

Overview

Adianti-Plugins

Plugins para Adianti Framework

Componentes disponíveis

Componente Fonte de abstração
VanillaDBTree https://github.com/finom/vanillatree

Instalação

Rode o comando composer require costamarques/plugins

Exemplo de uso - VanillaDBTree

CREATE TABLE IF NOT EXISTS `segmento` (
  `id` int(11) NOT NULL,
  `segmento_id` int(11) DEFAULT NULL,
  `descricao` varchar(200) COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

INSERT INTO `segmento` (`id`, `segmento_id`, `descricao`) VALUES
(1, NULL, 'Transporte'),
(2, 1, 'Executivo'),
(3, 1, 'Fracionado'),
(4, NULL, 'Informática'),
(5, 4, 'Software'),
(6, 4, 'Suporte e manutenção'),
(7, NULL, 'Varejo'),
(8, 7, 'Materiais de limpeza'),
(16, 8, 'Químicos'),
(17, 16, 'Controlados');
use Costamarques\Plugins\VanillaTree\VanillaDBTree;

class SegmentoForm extends TPage
{
    /**
     * Class constructor
     * Creates the page
     */
    function __construct()
    {
        parent::__construct();
        
        // creates a panel
        $panel = new TPanelGroup('Segmentos');
       
        $segmentos = new VanillaDBTree('segmento', 'DATABASE', 'Segmento', 'id', 'segmento_id', 'descricao', 'id asc');
        $segmentos->collapse();
        $segmentos->setItemAction(new TAction(array($this, 'onSelect')));
        
        $panel->add($segmentos);
        
        // wrap the page content using vertical box
        $vbox = new TVBox;
        $vbox->style = 'width: 100%';
        $vbox->add($panel);

        parent::add($vbox);
    }
    
    public function onSelect($param)
    {
        new TMessage('info', str_replace(',', '
'
, json_encode($param))); } }

Resultado

You might also like...
Examples of the power of WordPress plugins that will wreck your site.

Examples of the power of WordPress plugins that will wreck your site.

🌐 A minimalist languages library that made plugins support multiple languages.

libLanguages · libLanguages is a PocketMine-MP library for making plugins support multiple languages. Easy To Learn: Just declare it in onEnable() fun

Utilities for concurrent programming of PocketMine-MP plugins.
Utilities for concurrent programming of PocketMine-MP plugins.

Utilities for concurrent programming of PocketMine-MP plugins Overview Plugin that implements the pthreads channels and in the future, promises (which

UI virion (library) for PocketMine-MP plugins
UI virion (library) for PocketMine-MP plugins

Remark - Easy and Asynchronous Commands and Forms Quick Guide - Learn Remark by building a plugin. Install - Add Remark as a library to your plugin. E

TEC UTilities (or tut) are a collection of tools for managing plugins.

TEC Utilities TEC UTilities (or tut) are a collection of tools for managing plugins. /^\ L L /

Vite integration for WordPress plugins and themes development.

Vite for WordPress Vite integration for WordPress plugins and themes development. Usage Let's assume we have this plugin files structure: my-plugin/ ├

Herramienta para limpiar Comprobantes Fiscales Digitales v3.3

phpcfdi/cfdi-cleaner Herramienta para limpiar Comprobantes Fiscales Digitales por Internet mexicanos. 🇺🇸 The documentation of this project is in spa

Uma solucão simples para integrar sua aplicação Laravel a API PIX do Banco Central do Brasil
Uma solucão simples para integrar sua aplicação Laravel a API PIX do Banco Central do Brasil

Uma solução simples para integrar a sua aplicação Laravel com a API PIX do Banco Central do Brasil Instalação Publicando os assets Publicando o arquiv

Projeto utilizado para prática de TDD usando PHP com a equipe de desenvolvimento.

🚀 TDD com PHP 📄 Detalhamento do projeto Projeto desenvolvido durante um DOJO que organizei com os colegas de equipe da GAM Distribuidora. A proposta

Releases(v0.0.5)
Owner
Augusto César da Costa Marques
Analista de sistemas e desenvolvedor apaixonado por tecnologias web, atuante com php desde a versão 3 e adepto ao uso de frameworks.
Augusto César da Costa Marques
A PHP script that converts PMMP-3 Plugins into PMMP-4 plugins

This script tries to convert pm3 plugins to pm4 as good as possible, but sadly not perfect. Please open issues if you find any unexpected behaviour, to help improving this script.

null 43 Dec 3, 2022
Este es un sitema bibliotecario para registro de adquisiciones y prestamos para INATEC Siuna

About Laravel Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experie

James Reyes 3 Mar 26, 2022
Plugin de Wordpress para criar um Hacker News-like para o ManualdoUsuario.net

?? Órbita Plugin de Wordpress para criar um painel de debates baseado em links, similar ao Hacker News, para o Manual do Usuário. Rodar o projeto Requ

Gabriel Nunes 7 Nov 14, 2022
WordPlate is a wrapper around WordPress. It makes developers life easier. It is just like building any other WordPress website with themes and plugins. Just with sprinkles on top.

WordPlate is simply a wrapper around WordPress. It makes developers life easier. It is just like building any other WordPress website with themes and plugins. Just with sprinkles on top.

WordPlate 1.7k Dec 24, 2022
Plugins LevelSystem support Pocketmine-mp

Plugins LevelSystem support Pocketmine-mp

Ibenrm 8 Nov 24, 2022
Patches that prevent malicious Minecraft plugins from saturating host internet resources for DDoS.

Minecraft Host DoS Botnet Patches Patches that prevent malicious Minecraft plugins from saturating host internet resources for DDoS. In recent events,

Riley Nevins 4 Jul 16, 2022
WordPress Packagist — manage your plugins with Composer

WordPress Packagist This is the repository for wpackagist.org which allows WordPress plugins and themes to be managed along with other dependencies us

Outlandish 648 Jan 1, 2023
Plugins for NostalgiaCore/PMMP 1.3.11

NostalgiaPlugins Plugins for NostalgiaCore/PMMP 1.3.11 Special thx to SkilasticYT ColorCarpet: Author: ArkQuark Description: Paints blocks of wool and

null 5 Aug 6, 2022
Ied plugin composer - Inspired Plugin Composer: Create, publish and edit plugins from within Textpattern CMS.

ied_plugin_composer Create, publish and edit plugins from within Textpattern CMS. Creates a new page under the Extensions tab where you can edit and e

Stef Dawson 8 Oct 3, 2020
Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.

Imposter Plugin Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins. Built with ♥ by Typ

Typist Tech 127 Dec 17, 2022