Skip to content

Commit ffad277

Browse files
committed
notion ui.ALL & ui.FULL
1 parent 35a7218 commit ffad277

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ Note that the list is a list of lambda (`List[Callable[[], Tag]]`) to create the
339339

340340
## Object Swipper
341341

342-
**IMPORTANT** : not included in default (`ui.ALL`). If you want to use it, you must include it, like that `imports=ui.ALL + [ui.Swiper] ` (because +170ko). TODO: need to find a clever soluce ;-)
342+
**IMPORTANT** : not included in default (`ui.ALL`). If you want to use it, you must include it, or `imports=ui.FULL` (because +170ko). TODO: need to find a clever soluce ;-)
343343

344344
A component to use a Swiper (https://swiperjs.com/).
345345

htagui/all.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ def ui(self):
3232
from .flex import hflex,vflex # utilities (Htag contructor methods)
3333

3434
# Swiper not inluded by default !!!!!
35-
# Swiper not inluded by default !!!!! (coz +170ko)
36-
# Swiper not inluded by default !!!!!
35+
3736
ALL=[App,Form,Tabs,Dialog,HSplit,VSplit,IText,ITextarea,IRange,IBool,ISelect,IRadios,FileUpload,Sortable,VScroll,VScrollPager]
38-
# Swiper not inluded by default !!!!!
39-
# Swiper not inluded by default !!!!!
40-
# Swiper not inluded by default !!!!!
37+
FULL=ALL+[Swiper] # Swiper not inluded by default !!!!! (coz +170ko)

manual_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ class App(ui.App):
287287
hr {padding:0px !important;margin:4px !important;}
288288
"""
289289

290-
imports=ui.ALL + [ui.Swiper]
290+
imports=ui.FULL
291291
def init(self):
292292
self["class"]="content" # for bulma
293293

0 commit comments

Comments
 (0)