Page MenuHomePhabricator

mobile-html: allow clients to adjust tables
Open, NormalPublic

Description

Context
On iOS, users can define whether they want article tables to be collapsed or expanded by default. This means that we need to be able to communicate that preference to the html.
We also need to be able to pass our localized strings for table titles. (T205550)

Proposed solution
Provide a JS function that allows clients to adjust tables.
For example (once T205550 is completed):

wmf.adjustTables = (collapse, locale) => {
    // adjust tables
    if (callback) {
        callback();
    };
};

Questions
Currently, on iOS, when the user taps on a collapsed table's footer, we scroll them back to the top of that table. Is this behavior going to move up to page library or are we expected to continue handling it ourselves?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 11 2019, 5:22 PM
NHarateh_WMF updated the task description. (Show Details)Mar 11 2019, 6:06 PM
Jhernandez added subscribers: bearND, Jhernandez.

@bearND to move under the appropriate epic and prioritise. This could be blocked on figuring out how the app injects settings to the web view.

LGoto triaged this task as Normal priority.Wed, Mar 27, 3:54 PM