Ends in:
7 DAYS
23 HRS
31 MIN
53 SEC
Ends in:
7 D
23 H
31 M
53 S
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)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team 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)
    })
    
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06