forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request DefinitelyTyped#7048 from samvloeberghs/foundation…
…-sites Foundation sites
- Loading branch information
Showing
3 changed files
with
537 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
// Tests for type definitions for Foundation Sites v6.0.4 | ||
// Project: http://foundation.zurb.com/ | ||
// Definitions by: Sam Vloeberghs <https://github.com/samvloeberghs/> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="../jquery/jquery.d.ts" /> | ||
/// <reference path="foundation.d.ts" /> | ||
|
||
$(document).foundation(); | ||
$(document).foundation('method5'); | ||
$(document).foundation(['method', 'method2']); | ||
|
||
Foundation.Abide($('.selector')); | ||
Foundation.Abide($('.selector'), {}); | ||
|
||
Foundation.Accordion($('.selector')); | ||
Foundation.Accordion($('.selector'), {}); | ||
|
||
Foundation.AccordionMenu($('.selector')); | ||
Foundation.AccordionMenu($('.selector'), {}); | ||
|
||
Foundation.DrillDown($('.selector')); | ||
Foundation.DrillDown($('.selector'), {}); | ||
|
||
Foundation.Dropdown($('.selector')); | ||
Foundation.Dropdown($('.selector'), {}); | ||
|
||
Foundation.DropdownMenu($('.selector')); | ||
Foundation.DropdownMenu($('.selector'), {}); | ||
|
||
Foundation.Equalizer($('.selector')); | ||
Foundation.Equalizer($('.selector'), {}); | ||
|
||
Foundation.Interchange($('.selector')); | ||
Foundation.Interchange($('.selector'), {}); | ||
|
||
Foundation.Magellan($('.selector')); | ||
Foundation.Magellan($('.selector'), {}); | ||
|
||
Foundation.OffCanvas($('.selector')); | ||
Foundation.OffCanvas($('.selector'), {}); | ||
|
||
Foundation.Orbit($('.selector')); | ||
Foundation.Orbit($('.selector'), {}); | ||
|
||
Foundation.Reveal($('.selector')); | ||
Foundation.Reveal($('.selector'), {}); | ||
|
||
Foundation.Slider($('.selector')); | ||
Foundation.Slider($('.selector'), {}); | ||
|
||
Foundation.Sticky($('.selector')); | ||
Foundation.Sticky($('.selector'), {}); | ||
|
||
Foundation.Tabs($('.selector')); | ||
Foundation.Tabs($('.selector'), {}); | ||
|
||
Foundation.Toggler($('.selector')); | ||
Foundation.Toggler($('.selector'), {}); | ||
|
||
Foundation.Tooltip($('.selector')); | ||
Foundation.Tooltip($('.selector'), {}); | ||
|
||
/* | ||
TODO: fix this: | ||
error TS7017: Index signature of object type implicitly has an 'any' type. | ||
function pluginList() { | ||
'use strict'; | ||
return [ | ||
'Abide', | ||
'Accordion', | ||
'AccordionMenu', | ||
'DrillDown', | ||
'Dropdown', | ||
'DropdownMenu', | ||
'Equalizer', | ||
'Interchange', | ||
'Magellan', | ||
'OffCanvas', | ||
'Orbit', | ||
'Reveal', | ||
'Slider', | ||
'Sticky', | ||
'Tabs', | ||
'Toggler', | ||
'Tooltip' | ||
]; | ||
} | ||
pluginList().forEach((value:string) => { | ||
Foundation[value]($('.selector')); | ||
Foundation[value]($('.selector'), {}); | ||
}); | ||
*/ | ||
|
||
|
Oops, something went wrong.