主权项 |
1. A non-transitory computer-readable medium containing instructions to configure a processor to perform operations comprising:
receiving a request from a computing device, the request including an indication of a size of a display screen at the computing device; determining, from the received request, whether formatting to accommodate display size is needed for a table being requested by the received request; providing the table, when the determining indicates no formatting is needed to accommodate display size at the computing device; and when the determining indicates that formatting is needed to accommodate display size at the computing device,
accessing a table having one or more rows and a plurality of columns, the one or more rows having one or more data values distributed across the plurality of columns, the plurality of columns each associated with one or more column labels and each associated with one or more priority values indicative of an order for displaying each of the plurality of columns in a reformatted table,determining, based on the received request, the display size of the display screen on the computing device,formatting the table to form the reformatted table by at least:
maintaining, based on the corresponding priority values for a first column and a second column and based the determined display size, the first column including a first column label and corresponding data value placed below the first column label and the second column including a second column label and corresponding data value placed below the second column label, andmoving, based on the corresponding priority values for a third column and a fourth column and based the determined display size, the third column including a third column label and a corresponding data value into a pop-in area and the fourth column including a fourth column label and a corresponding data value into the pop-in area, the pop-in area located in the reformatted table below presentation of columnar data including the first column and the second column and before a subsequent data record, the third column label and the corresponding data value presented as a first row in the pop-in area and the fourth column label and the corresponding data value are presented as a second row in the pop-in area, andcausing the reformatted table to be displayed on the computing device. |