Web Component: j-Pages
j-Pages
The component is a better alternative to the j-Section
component. As a result, you can easily make a multi-page app with dynamic content loading when needed. The result looks very intuitive for mobile devices or desktop computers.
- jComponent
v19|v20
Main configuration:
margin
{Number/String}
a top margin (default:0
)auto
will appliedoffset.top
value
margintype
{String}
can containoffset
(default) orposition
valuedelay
{Number}
animation delay (default:220
)parent
{String} optional, a selector to an element with a fixed height (default:parent
element)scrollbarshadow
{Boolean}
enables shadow for the scrollbar (default:false
)loading
{String}
optional, a link to thefunction(show_loading
{Boolean})
Section attribute configuration data-config
:
if
{String}
a condition for displaying of pageurl
{String}
URL address for getting HTML contentpath
{String}
the value will replace~PATH~
pharses (default:config.if
)id
{String}
the value will replace~ID~
pharsesanim
{String}
animation type, supported valuesleft
(default),right
,top
orbottom
scrollbar
{Boolean}
appends a custom scrollbar into the content (default:true
)scrolltop
{Boolean}
enables auto-scrollreload
{String}
a link to thefunction(el)
, it's executed when the page is displayedhide
{String}
a link to thefunction(el)
, it's executed when the page is hiddencheck
{String}
a link to thefunction(next, el)
next
{Function}
continues with page displaying
- NEW:
autofocus
{Boolean}
performs autofocus for the current page
Author
- Peter Širka petersirka@gmail.com
- License
Created
07. june 2022
Updated
08. july 2024
jComponent library
19 | 20
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com