Open Closed

Page Title within Tabs Index.html #7122


User avatar
0
nabass created

hi sir in my logic i must put more than page into one view so i used (taps) and it works well as image-1 but i faced a small problem in page title header if i put a title as image-2 it will be always same title (Account Level) so what should i put to make it dynamic?? Example: if i click to account page title will change to (Account) else if clicked on Account Type title will change to (Account Type) ..... etc

  • ABP Framework version: v8
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You can use the JS click event to update the page title dynamic.

    For example:

    ....
    <tab data-title="Account type">
    
    $("....").on('click', () = > {
       // update the page header.
       var title = $(this).data("title");
       $("..").val(title)
    })
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 23, 2026, 09:57
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.