Access pagination number of records picklist via javascript

Better way? No idea. You’re farther along than my look into the arguments passed into a snippet. I look for properties that have functions provided and go from there. As you know not all functions are documented.