Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Plugin construction method for multistage tab and setting method and device thereof

A construction method, tab technology, applied in program control device, program control design, input/output process of data processing, etc., can solve problems such as lack of flexibility, and achieve a wide range of applications, flexible layout, flexible methods Effect

Active Publication Date: 2017-12-01
SHENZHEN IPANEL TECH LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the multi-level tabs set by the prior art all pre-set the content and color of the tabs at all levels, and cannot be changed accordingly according to specific trigger events, lacking certain flexibility

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
  • Plugin construction method for multistage tab and setting method and device thereof
  • Plugin construction method for multistage tab and setting method and device thereof
  • Plugin construction method for multistage tab and setting method and device thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] see figure 1 It is a schematic flowchart of a multi-level tab plug-in construction method provided by Embodiment 1 of the present invention. The method includes the following steps:

[0042] S11. Define the global object of the plug-in, and write a function closure, and return the object in the closure to the global object;

[0043] It can be understood that the purpose of defining the global object of the plug-in and writing the function closure is to prevent the variables in the plug-in from polluting the global variables, that is, the plug-in can be applied to various operating environments, expanding its scope of use.

[0044] S12. Define a function variable and an initialization mode of the plug-in in the closure;

[0045]Specifically, function variables are defined in the closure and local variables are defined in the function, so that commonly used variables are written at the top; at the same time, the initialization mode of the plug-in is defined, including th...

Embodiment 2

[0050] Referring to embodiment one of the present invention and figure 1 The specific process of steps S11 to S13 described in , and referring to the schematic flowchart of a method for setting multi-level tabs provided in Embodiment 2 of the present invention, the method includes the following steps:

[0051] S21. Analyze the acquired trigger event, and obtain attribute information corresponding to the trigger event;

[0052] S22. According to the attribute information of the trigger event, judge whether the tab level corresponding to the trigger event is the lowest level of the tab, if yes, execute S23, and if not, execute S24;

[0053] S23. Display corresponding content information according to the trigger event;

[0054] S24. According to the attribute information of the trigger event, set the lower-level tab list of the tab level corresponding to the trigger event, and perform hexadecimal color conversion and calculation according to the color value of the current level ...

Embodiment 3

[0068] Corresponding to the method for setting multi-level tabs disclosed in Embodiment 2, Embodiment 3 of the present invention also provides a device for setting multi-level tabs, see image 3 A schematic structural diagram of a device for setting multi-level tabs provided by Embodiment 3 of the present invention, the device includes:

[0069] An analysis module 1, configured to analyze the acquired trigger event, and obtain attribute information corresponding to the trigger event;

[0070] The setting module 2 is used to judge whether the tab level corresponding to the trigger event is the lowest level of the tab according to the attribute information of the trigger event, and if so, display the corresponding content information according to the trigger event ; If not, according to the attribute information of the trigger event, set the lower-level tab list of the tab level corresponding to the trigger event, and perform a hexadecimal color according to the color value of t...

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 plugin construction method for multistage tab and a setting method and device thereof. The setting method for the multistage tab comprises the following steps that: analyzing an obtained trigger event, and obtaining attribute information corresponding to the trigger event; judging whether a tab hierarchy corresponding to the trigger event is the bottom layer of the tab or not, and if the tab hierarchy corresponding to the trigger event is the bottom layer of the tab, displaying corresponding content information; and if the tab hierarchy corresponding to the trigger event is not the bottom layer of the tab, setting the lower-stage tab list of the tab hierarchy corresponding to the trigger event, carrying out hexadecimal color conversion and calculation on the current-stage color value of the trigger event, and setting the color of each hierarchy of the lower-stage hierarchy corresponding to the trigger event. By use of the method, a purpose that the layout of different hierarchies of the multistage tab is flexible is realized.

Description

technical field [0001] The invention relates to the technical field of page display, in particular to a plug-in construction method for multi-level tabs and a setting method and device thereof. Background technique [0002] With the development of Internet technology in recent years, in order to facilitate people's browsing and use of browsers, the content of corresponding web page settings has become more and more abundant. Among them, the setting of multi-level tabs facilitates the user to browse the content to be browsed according to the level. [0003] At present, the existing multi-level tab settings are based on the attributes contained in the trigger elements that trigger events, and then match the corresponding elements according to the attributes, and write a layer of application areas according to the corresponding elements, and set up all levels. The width and color of the tabs. When clicking on an item in one level of tabs, the parameters contained in its eleme...

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 & Authority Applications(China)
IPC IPC(8): G06F9/445G06F9/44G06F3/0485G06F3/0484
CPCG06F3/04842G06F3/0485G06F9/44526
Inventor 徐佳宏万冠兰陈恋
Owner SHENZHEN IPANEL TECH LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products