Method for realizing bookstrap table row dragging

A table and mouse technology, which is applied to instruments, digital data processing, program control devices, etc., can solve problems such as dragging and dropping table column width, and achieve the effect of optimizing page experience

Inactive Publication Date: 2018-02-16
ZHENGZHOU YUNHAI INFORMATION TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the size of the column is generally written in percentage or fixed size when the table is initialized. After the table is generated, the width of the table column cannot be dragged arbitrarily.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for realizing bookstrap table row dragging

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to clearly illustrate the technical features of this solution, the present invention will be described in detail below through specific implementation modes and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the present invention. To simplify the disclosure of the present invention, components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and / or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. It should be noted that components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted herein to avoid unnecessarily limiting the...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for realizing bookstrap table row dragging. The method comprises the following steps that: S1: judging whether a mouse position is in a list or not and whether a distance between the mouse position and a list boundary is smaller than a set value or not, if the mouse position is in the list or and the distance between the mouse position and the list boundary is smaller than the set value, changing a mouse state to be a draggable state, and jumping to S2, and otherwise, stopping processing; S2: judging whether the mouse is pressed down or not, if the mouse is pressed down, calculating a mouse dragging distance, jumping to S3, and otherwise, stopping processing; and S3: reconstructing row width, and endowing the row width to a current dragged row and an adjacent row again according to the calculated row width. By use of the method, the source code file of bootstrap table is revised, the compatibility problem of a browser is fully considered, almost all browsers are supported, the bookstrap table row dragging is realized, a user can drag the row width of the table row and define the layout and the display of the row on the own, and the page experience of the user is optimized.

Description

technical field [0001] The invention relates to the technical field of java web, in particular to a method for realizing dragging and dropping of bookstrap table columns. Background technique [0002] In the framework of developing pages now, the bootstrap framework is already very popular among front-end developers, and the bootstrap table is a jquery table plug-in based on bootstrap, which provides a lot for our front-end to use tables to display data and query, sort, paginate, column selection, etc. Great convenience. However, the column size is generally written in percentage form or fixed size form when the form is initialized. After the form is generated, the width of the form column cannot be dragged arbitrarily. Contents of the invention [0003] The purpose of the present invention is to provide a method for dragging and dropping the columns of the bookstrap table, which realizes the dragging and dropping of the columns of the bootstrap table, so that the user ca...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & AuthorityApplications(China)
IPC IPC(8): G06F8/38G06F9/451
CPCG06F8/38
Inventor唐超
OwnerZHENGZHOU YUNHAI INFORMATION TECH CO LTD