Last active
August 29, 2015 14:07
-
-
Save ngalluzzo/019cbc7f61b7c62549e5 to your computer and use it in GitHub Desktop.
Change Knack Page Title to View Name!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If using Knack builder, declare this as a global function to be re-used | |
var changeTitle = function (view) { | |
document.title = view.name; | |
}; | |
// Change the Page Title (Text shown in the Tab) to the View Name | |
$(document).on('knack-view-render.view_70', function (event, view, data) { | |
changeTitle(view); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment