Skip to content

Instantly share code, notes, and snippets.

View berdyshev's full-sized avatar

Artem Berdyshev berdyshev

  • Self-employed
  • Ukraine, Zaporizhzhia
View GitHub Profile
@berdyshev
berdyshev / react-table.d.ts
Last active July 19, 2022 14:21 — forked from Grsmto/react-table.d.ts
React Table v7 TS typings definition
// Type definitions for react-table 7
// Project: https://github.com/tannerlinsley/react-table#readme
// Definitions by: Grsmto <https://github.com/grsmto>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
declare module "react-table" {
export type Cell = {
render: (type: string) => any;
getCellProps: () => any;
column: Column;
<?php
/** Add/Edit Form
*/
function MYMOD_formid_form($form, $form_state){
$form['event'] = array(
'#title' => t('Event'),
'#type' => 'select',
'#empty_option' => '',
'#options' => $event_options, // доступные варианты
'#ajax' => array(