Web + OutSystemsCommunityWeb ≥ 1.0.0Minimum supported stable Web library version: @blukavantui/community 1.0.0. This is component availability; newer features and examples may require a later release.
Help people browse records with page numbers, page-size choices and clear navigation.
Shared browser preview
Playground and Examples use the shared browser runtime. For Service Studio inputs and event wiring, use Implementation and API.
Follow the setup steps, connect your application state, and verify each feature. Use the Code tab for the complete working Web example.
Web / TypeScript
01
Mount once, update state, clean up
Provide a real <div id="example"></div> in your view. Use the Code tab example's options and data as a starting point, then call this adapter with that host. Import the shared theme once per application and the component stylesheet with the component. Keep the returned instance for updates; call destroy() from your router/framework cleanup before removing the host.
This helper takes your real options and callbacks; it does not fetch records or invent a backend. The Code tab’s working example supplies a usable data shape. Use stable record keys when updates refer to existing items.
02
Connect the features you need
Request the correct page of records
CurrentPagePageSizeTotalCountPageChanged
Keep page state with your query. In PageChanged, request the page and page size from your backend, then update rows, CurrentPage and TotalCount from the response. TotalCount must be the total after filtering, not the current page length. Reset to page one when filters change.
Verify: Test the last partial page, a page-size change and filtering to zero records.
03
Before shipping
Use representative real data, including empty, loading and failed requests.
Test keyboard interaction, Light and Dark appearance, and a narrow screen with your longest labels.
Navigate away and back; confirm cleanup, expected state restoration and no duplicated callbacks.
OutSystems / Service Studio
01
Reference the native producer
In Manage Dependencies, select Pagination from BluKavantUi_Community_Data, together with the structures and public actions used by its API. Refresh existing references before publishing your consumer. Inherit the shared Community theme in your application's theme.
02
Place the Block in your screen
Service Studio widget tree
ExampleScreen — Screen (your application)
└─ ExistingLayout — referenced Layout Block instance (child of ExampleScreen)
└─ Content — existing slot on ExistingLayout
└─ ComponentRegion — Container (child of that slot)
└─ MainComponent — BluKavantUi_Community_Data.Pagination Block instance (child of ComponentRegion)
Reuse your screen’s existing Layout and its content slot; do not add a second layout. If your Layout names that slot differently, use its actual content slot. ComponentRegion is a new Container; MainComponent is a referenced Block instance.
03
Create and bind screen state
Create local variables on ExampleScreen for the values your application changes. Use the exact native types below; lists are typed OutSystems Lists, while inputs ending in Json are Text containing the documented JSON. Bind each MainComponent.Input to its matching StateInput local. Constants can instead use the default directly. Fill required data from your Aggregate or Data Action before enabling interaction.
MainComponent input
Screen local / native type
Initial value
Purpose
CurrentPage
StateCurrentPage · Integer
1
Controlled one-based page. Assign OnPageChanged.CurrentPage back to this input.
PageSize
StatePageSize · Integer
10
Records per page; positive integer. Assign OnPageChanged.PageSize back.
TotalCount
StateTotalCount · Integer
0
Total matching records, not the size of the current page.
PageSizesJson
StatePageSizesJson · Text
"[10,25,50,100]"
JSON array of positive page sizes.
All native input defaults
Input
Type
Default
Required
CurrentPage
Integer
1
No
PageSize
Integer
10
No
TotalCount
Integer
0
No
PageSizesJson
Text
"[10,25,50,100]"
No
ShowPageSize
Boolean
True
No
ShowQuickJump
Boolean
False
No
IsCompact
Boolean
False
No
IsDisabled
Boolean
False
No
AccessibleLabel
Text
"Pagination"
No
ExtendedClass
Text
""
No
04
Create the event handlers and map every argument
For each event you use, create the named screen Client Action below. Add its listed input parameters with the exact types. Select that action on MainComponent's event property, then enter each mapping explicitly. Event arguments and screen locals are different scopes.
OnError → HandleError
Readable validation or operation error.
Handler input
Native type
Event mapping
RequestedMessage
Text
RequestedMessage = Message
Flow: Start → display the mapped error argument in your feedback region → End.
OnPageChanged → HandlePageChanged
Requested one-based page.
Handler input
Native type
Event mapping
RequestedCurrentPage
Integer
RequestedCurrentPage = CurrentPage
RequestedPageSize
Integer
RequestedPageSize = PageSize
Flow: Start → validate the requested value; assign the corresponding screen state so the Block receives it back → End.
05
Verify in your consumer
Publish the consumer, supply representative data, trigger each connected event and inspect the mapped arguments. Check a failed request, a retry and leaving/reopening the screen. The table describes the native contract; the Web recipes can contain capabilities with different native names or availability. Use these native names and the API tab as the authority for Service Studio.
LOCAL 1.2 API · UNPUBLISHED
Shared component motion settings
Use createMotionComponents from the local bluui-community/src/component-motion.ts entry. The factories retain the component’s data, options, events and methods, and add setMotion(settings?). Create the controller with createMotionController from bluui-community/src/motion.ts.
Setting / method
Behavior
mode
inherit (default), reduced, or off. The owning controller and operating system can always reduce or disable motion.
duration
Optional finite-transition override, 0–2000 ms. Omit for default timings; zero is immediate. Reduced caps permitted fades at 200 ms. Continuous loading retains its own cadence.
easing
Optional standard, ease-in, ease-out, ease-in-out, linear or spring. Omit for each component's default easing.
ui.configure(settings?)
Replace collection defaults, update existing instances and cancel their unfinished decoration. Explicit instance overrides remain. Omit settings to restore component defaults.
component.setMotion(settings?)
Replace just this instance's overrides. Omit settings to inherit the collection again. Inputs, focus, content and actions are retained.
ui.destroy()
Dispose owned instances and their motion before destroying the controller. No global listener is added at import time.
Validation rejects nonfinite, negative and over-2000-ms durations before changing settings. Motion follows the existing component behavior. Grid rows need stable keys; charts update their actual data series; workflow transitions retain their approval and save contracts. Charts respect EnableAnimation: false; continuous Sparkline glow keeps its own cadence and Pause control. Ripple, glow, shimmer and page-entry helpers remain explicit additions.
Open the playground to load the local source example.
TYPESCRIPT / BROWSER
TypeScript example
Use the source below in your application. Try the interactive component in Playground or Examples.
Component sizeCommunity v1.2.0 · minified + gzip
JavaScript
3.2 KiB
Component CSS
1.0 KiB
Shared theme CSS
5.5 KiBonce per application
Size details
The JavaScript figure includes this component’s required helpers. CSS includes its styling dependencies. Each entry is bundled separately for ES2022, minified, then compressed with gzip level 9. Your bundler may share helpers across components. Images, fonts, examples and application code are excluded.
Before compression: JavaScript 7.5 KiB; component CSS 2.8 KiB. These figures describe browser assets, not the complete package download.
Community components use @blukavantui/community. The ten Pro components use the separate @blukavantui/pro add-on alongside Community. Your application handles persistence and authentication through its typed callbacks. Choose the matching edition when installing the example.
OUTSYSTEMS / SERVICE STUDIO
Build with native Blocks
Configure the referenced Block in Service Studio using typed inputs, screen state and Client Actions. The Implementation tab includes the widget tree and exact event argument mappings.
Use createMotionComponents from the local bluui-community/src/component-motion.ts entry. The factories retain the component’s data, options, events and methods, and add setMotion(settings?). Create the controller with createMotionController from bluui-community/src/motion.ts.
Setting / method
Behavior
mode
inherit (default), reduced, or off. The owning controller and operating system can always reduce or disable motion.
duration
Optional finite-transition override, 0–2000 ms. Omit for default timings; zero is immediate. Reduced caps permitted fades at 200 ms. Continuous loading retains its own cadence.
easing
Optional standard, ease-in, ease-out, ease-in-out, linear or spring. Omit for each component's default easing.
ui.configure(settings?)
Replace collection defaults, update existing instances and cancel their unfinished decoration. Explicit instance overrides remain. Omit settings to restore component defaults.
component.setMotion(settings?)
Replace just this instance's overrides. Omit settings to inherit the collection again. Inputs, focus, content and actions are retained.
ui.destroy()
Dispose owned instances and their motion before destroying the controller. No global listener is added at import time.
Validation rejects nonfinite, negative and over-2000-ms durations before changing settings. Motion follows the existing component behavior. Grid rows need stable keys; charts update their actual data series; workflow transitions retain their approval and save contracts. Charts respect EnableAnimation: false; continuous Sparkline glow keeps its own cadence and Pause control. Ripple, glow, shimmer and page-entry helpers remain explicit additions.
Open the playground to load the local source example.
WEB · TYPESCRIPT
createPagination
Pass options as the second argument and callbacks in the third argument. Keep the returned instance to update options or dispose it when its view is removed.
v1.1.0
import { createPagination } from '@blukavantui/community/pagination'; import '@blukavantui/community/pagination.css';Load @blukavantui/community/theme.css once in your app shell.
Reference for @blukavantui/community 1.1.0. Required and optional follow the shipped TypeScript declarations; optional does not imply a particular default. Pass typed arrays and objects directly where shown.
Options
10
Name
Type / requirement
Usage
CurrentPage
numberOptional
Controlled one-based page. Assign OnPageChanged.CurrentPage back to this input.
PageSize
numberOptional
Records per page; positive integer. Assign OnPageChanged.PageSize back.
TotalCount
numberOptional
Total matching records, not the size of the current page.
Help people browse records with page numbers, page-size choices and clear navigation.
Keyboard design guidance
Tab to page buttons and selectors. Current page is announced; unavailable navigation is disabled.
See the support status above for review coverage and any limitations.
In your application
Provide useful labels, preserve visible focus, and test the component with your actual content. Use text alongside status colors and check contrast in each state.