Use this guide for Bootstrap Cells related to navigation, overlays, dismissal, and interactive UI patterns.
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\BreadcrumbCell::class, [
'items' => [
['label' => 'Home', 'url' => '/'],
['label' => 'Library', 'url' => '/library'],
['label' => 'Data', 'active' => true],
],
]) ?>Supported parameters:
items: array of breadcrumb items usinglabel,urlorhref, optionalactive,classes,linkClasses, andcurrentclasses: additional CSS classes on the breadcrumb listlistClasses: alias for additional classes on the breadcrumb listitemClasses: shared classes added to each.breadcrumb-itemlinkClasses: shared classes added to breadcrumb linksdivider: custom divider string or CSS value for--bs-breadcrumb-dividercurrent: defaultaria-currentvalue for the active item, defaults topagelabel:aria-labelfor the wrapping<nav>, defaults tobreadcrumbescape: escapes item labels by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\PaginationCell::class, [
'currentPage' => 3,
'totalPages' => 10,
'urlPattern' => '/users?page={page}',
]) ?>Supported parameters:
items: optional manual page items usinglabel,urlorhref,active,disabled,ariaLabel,classes,linkClasses, andellipsiscurrentPage: current page number for generated paginationtotalPages: total page count for generated paginationurlPattern: generated URL pattern with{page}, defaults to?page={page}showPreviousNext: shows previous and next controls in generated modeshowFirstLast: shows first and last controls in generated modepreviousLabel: previous control labelnextLabel: next control labelfirstLabel: first-page control labellastLabel: last-page control labelwindow: number of pages shown around the current page in generated modesize:smorlgalign:centerorendclasses: additional CSS classes on the pagination wrapperitemClasses: shared classes added to each.page-itemlinkClasses: shared classes added to each.page-linklabel:aria-labelfor the wrapping<nav>escape: escapes labels by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\NavbarCell::class, [
'brandLabel' => 'Demo',
'brandUrl' => '/',
'items' => [
['label' => 'Home', 'url' => '/', 'active' => true],
['label' => 'Features', 'url' => '/features'],
],
]) ?>Supported parameters:
brandLabel: navbar brand labelbrandUrl: brand link URLitems: array of nav items usinglabel, optionalurlorhref,active,disabled, andclassesexpand: collapse breakpoint, defaults tolgbackground: background utility suffix or full class, defaults tobody-tertiarytheme: optionallightordark, rendered asdata-bs-themecontainer:fluid,default, empty string, or a custom container classclasses: additional CSS classes on the<nav>navClasses: additional CSS classes on the<ul class="navbar-nav">content: optional extra content rendered inside the collapsed navbar areacollapseId: optional explicit collapse idescape: escapes brand, nav labels, andcontentby default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\DropdownCell::class, [
'content' => 'Actions',
'items' => [
['label' => 'Profile', 'url' => '/profile'],
['divider' => true],
['label' => 'Settings'],
],
]) ?>Supported parameters:
message: alias ofcontentcontent: toggle label/contentvariant: Bootstrap contextual variant likesecondary,primary,dangertype: alias ofvariantoutline: switches from.btn-{variant}to.btn-outline-{variant}size:smorlgdirection:dropup,dropend,dropstart,dropup-center, ordropdown-centeralign:enddark: adds.dropdown-menu-darkclasses: additional CSS classes on the dropdown wrapperbuttonClasses: additional CSS classes on the toggle buttonmenuClasses: additional CSS classes on the menuid: optional explicit toggle iditems: array of menu entries usinglabel, optionalurlorhref,disabled,active,divider,header,text, andclassesescape: escapes labels and text by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\AccordionCell::class, [
'items' => [
['title' => 'Item 1', 'content' => 'Body 1', 'active' => true],
['title' => 'Item 2', 'content' => 'Body 2'],
],
]) ?>Supported parameters:
items: array of accordion items usingtitleorlabel,contentorbody, optionalactive, andclassesflush: adds.accordion-flushalwaysOpen: removes the shareddata-bs-parentbehaviorclasses: additional CSS classes on the accordion wrapperid: optional explicit accordion idescape: escapes titles and content by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\ModalCell::class, [
'title' => 'Confirm delete',
'content' => 'Are you sure?',
]) ?>Supported parameters:
title: modal titlemessage: alias ofcontentcontent: modal body contentfooter: optional footer markup/contentclasses: additional CSS classes on.modaldialogClasses: additional CSS classes on.modal-dialogsize:sm,lg,xl, orfullscreencentered: adds.modal-dialog-centeredscrollable: adds.modal-dialog-scrollablefade: includes the.fadeclass, enabled by defaultshow: adds.showand inline display stylingcloseButton: renders the dismiss button in the headerstaticBackdrop: addsdata-bs-backdrop="static"keyboard: set tofalseto renderdata-bs-keyboard="false"id: optional explicit modal idescape: escapes title, body, and footer by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\TabsCell::class, [
'items' => [
['label' => 'Home', 'content' => 'Home content', 'active' => true],
['label' => 'Profile', 'content' => 'Profile content'],
],
]) ?>Supported parameters:
items: array of tab items usinglabelortitle,content, optionalactive, anddisabledpills: switches from tabs to pillsfill: adds.nav-filljustified: adds.nav-justifiedfade: uses fading tab panesclasses: additional CSS classes on the nav wrappernavClasses: additional CSS classes merged into the nav elementcontentClasses: additional CSS classes on.tab-contentid: optional explicit base idescape: escapes labels and content by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\ToastCell::class, [
'title' => 'Notification',
'content' => 'Hello world',
]) ?>Supported parameters:
title: optional toast header titlesubtitle: optional secondary header textmessage: alias ofcontentcontent: toast body contentclasses: additional CSS classes on.toastbodyClasses: additional CSS classes on.toast-bodyheaderClasses: additional CSS classes on.toast-headerautoHide: controlsdata-bs-autohide, enabled by defaultdelay: delay in milliseconds, defaults to5000fade: includes the.fadeclass, enabled by defaultshow: adds.showcloseButton: renders the dismiss button in the headerrole: ARIA role, defaults toalertariaLive: defaults toassertiveariaAtomic: defaults totrueescape: escapes title, subtitle, and body by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\OffcanvasCell::class, [
'title' => 'Menu',
'content' => 'Sidebar content',
]) ?>Supported parameters:
title: offcanvas titlemessage: alias ofcontentcontent: offcanvas body contentplacement:start,end,top, orbottomresponsive: responsive variant likelgforoffcanvas-lgclasses: additional CSS classes on the offcanvas wrapperbodyClasses: additional CSS classes on.offcanvas-bodyheaderClasses: additional CSS classes on.offcanvas-headershow: adds.showscroll: controlsdata-bs-scrollbackdrop:true,false, orstaticcloseButton: renders the dismiss buttontheme: optionaldata-bs-themevalueid: optional explicit offcanvas idescape: escapes title and body by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\CollapseCell::class, [
'content' => 'Collapsed content',
'card' => true,
]) ?>Supported parameters:
message: alias ofcontentcontent: collapse contentshow: adds.showhorizontal: adds.collapse-horizontalcard: wraps the content in.card.card-bodyclasses: additional CSS classes on the outer collapse wrapperbodyClasses: additional CSS classes on the wrapped inner bodyid: optional explicit collapse idescape: escapes content by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\CarouselCell::class, [
'items' => [
['src' => '/img/slide-1.jpg', 'alt' => 'Slide 1', 'active' => true],
['src' => '/img/slide-2.jpg', 'alt' => 'Slide 2'],
],
]) ?>Supported parameters:
items: array of slides usingsrcorimage,alt, optionaltitle,caption,active,interval, andcaptionClassescontrols: renders prev/next controlsindicators: renders slide indicatorsfade: adds.carousel-fadedark: adds.carousel-darkride: enables automatic ridetouch: controls touch swipe supportwrap: controls cycling from last to firstinterval: default interval in millisecondsclasses: additional CSS classes on the carouselid: optional explicit carousel idescape: escapes captions by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\PopoverCell::class, [
'content' => 'Open popover',
'title' => 'Popover title',
'body' => 'Popover body',
]) ?>Supported parameters:
message: alias of the visible triggercontentcontent: trigger label/contenttitle: popover titlebody: popover bodyplacement:top,bottom,start, orendtrigger: custom Bootstrap trigger stringhtml: addsdata-bs-html="true"variant: contextual button variant, defaults tosecondarytype: alias ofvariantoutline: uses outline button stylingsize:smorlghref: when set, renders an anchor triggertag: forcebuttonorabuttonType: buttontypeattribute, defaults tobuttondisabled: disabled state with accessibility attributesclasses: additional CSS classes on the triggerid: optional explicit idescape: escapes title, body, and label by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\TooltipCell::class, [
'content' => 'Hover me',
'title' => 'Tooltip text',
]) ?>Supported parameters:
message: alias of the visible triggercontentcontent: trigger label/contenttitle: tooltip textplacement:top,bottom,start, orendtrigger: custom Bootstrap trigger stringhtml: addsdata-bs-html="true"variant: contextual button variant, defaults tosecondarytype: alias ofvariantoutline: uses outline button stylingsize:smorlghref: when set, renders an anchor triggertag: forcebuttonorabuttonType: buttontypeattribute, defaults tobuttondisabled: disabled state with accessibility attributesclasses: additional CSS classes on the triggerid: optional explicit idescape: escapes title and label by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\ScrollspyCell::class, [
'id' => 'docsScrollspy',
'items' => [
['label' => 'Intro', 'content' => 'Introduction section'],
['label' => 'Usage', 'content' => 'Usage section'],
],
]) ?>Supported parameters:
items: sections usinglabel,title,content,id,headingLevel, andclassesid: optional nav id used bydata-bs-targetnavType:navorlist-groupnavVariant:pillsortabswhennavTypeisnavheight: scrollable content height, defaults to260pxrootMargin: Bootstrap scrollspy root margin, defaults to0px 0px -40%classes: additional CSS classes on the outer wrappernavClasses: additional CSS classes on the nav containercontentClasses: additional CSS classes on the scrollable content areaescape: escapes labels, headings, and content by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\CloseButtonCell::class, [
'dismiss' => 'alert',
]) ?>Supported parameters:
label: ARIA label, defaults toCloseclasses: additional CSS classes on the buttondismiss: optional Bootstrap dismiss target likealert,modal,offcanvas, ortoasttarget: optionaldata-bs-targettype: button type, defaults tobuttondisabled: disables the buttontheme:lightordarkid: optional explicit id
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\ButtonGroupCell::class, [
'items' => [
['label' => 'Left'],
['label' => 'Middle', 'active' => true],
['label' => 'Right'],
],
]) ?>Supported parameters:
items: button definitions usinglabel,content,variant,outline,href,active,disabled, andclassesvertical: uses.btn-group-verticalsize:smorlglabel: ARIA label for the group, defaults toButton grouprole: wrapper role, defaults togroupclasses: additional CSS classes on the wrapperescape: escapes button labels by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\ButtonToolbarCell::class, [
'groups' => [
['items' => [['label' => '1'], ['label' => '2']]],
['items' => [['label' => '3']]],
],
]) ?>Supported parameters:
groups: array of button groups usingitems,label,vertical,size, andclasseslabel: ARIA label for the toolbar, defaults toButton toolbarrole: wrapper role, defaults totoolbarclasses: additional CSS classes on the toolbarescape: escapes button labels by default; set tofalseto render trusted HTML
<?= view_cell(\domProjects\CodeIgniterBootstrap\Cells\NavCell::class, [
'variant' => 'pills',
'items' => [
['label' => 'Home', 'url' => '/', 'active' => true],
['label' => 'Profile', 'url' => '/profile'],
],
]) ?>Supported parameters:
items: nav items usinglabel,url,content,active,disabled,toggle, andclassesvariant:tabs,pills,underline, or plainnavfill: adds.nav-filljustified: adds.nav-justifiedvertical: adds.flex-columnfade: fades tab panes when content is providedclasses: additional CSS classes on the navcontentClasses: additional CSS classes on the.tab-contentid: optional base id used for generated tabs and panesescape: escapes labels and content by default; set tofalseto render trusted HTML