tw2.util.html5shim

Software skärmdump:
tw2.util.html5shim
Mjukvaruinformation:
Version: 2.0.1 Alpha
Ladda upp dagen: 20 Feb 15
Utvecklare: Greg Jurman
Licens: Gratis
Popularitet: 1

Rating: 2.5/5 (Total Votes: 2)

tw2.util.html5shim gör HTML5-Shim att läggas till som en widget specifikt eller global resurs för kompatibilitet med Internet Explorer version lägre än 9,0.
Använda tw2.util.html5shim
Inuti ToscaWidget2 Widgets
I widgets.py fil (eller en resurs deklaration fil om du använder en) Lägg till följande:
Överst på filen:
från tw2.util.html5shim import html5shim_js
I widgeten deklarationen lägga html5shim_js till resurserna attribut som så:
klass YourWidget (tw2.core.Widget):
& Nbsp; resurser = [html5shim_js, other_res, another_res]
Turbogears 2
Om du behöver HTML5-Shim att injiceras globalt, lägg till följande Projekt / bas / lib.py
Överst på filen:
från tw2.util.html5shim import html5shim_js
Ovanför satsen return i BaseController .__ call__:
html5shim_js.inject ()

Krav :

  • Python

Kommentarer till tw2.util.html5shim

Kommentarer hittades inte
Kommentar
Slå på bilder!