Famcy/_items_/table_block/table_block.py
def generate_template_content(cls, fblock_type=None):
        """
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """
        return {
            "input_button": "checkbox",                     # ("checkbox" / "radio" / "none")
            "input_value_col_field": "col_title1",          # if input_button != "none"

            "page_detail": True,                            # (true / false)
            "page_detail_content": "key_value",             # if page_detail == true: (key_value / HTML_STR => ["<p>line1</p>", "<p>line2</p>"])

            "toolbar": True,                                # (true / false)
            "page_footer": True,                            # (true / false)
            "page_footer_detail": {                         # if page_footer == true
                "page_size": 1,
                "page_list": [1, 2, "all"]
            },
            "column": [[{
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                },
                {
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                },
                {
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                }
            ]],
            "data": [
                {
                    "col_title1": "row_content11",
                    "col_title2": "row_content12",
                    "col_title3": "row_content13"
                },
                {
                    "col_title1": "row_content21",
                    "col_title2": "row_content22",
                    "col_title3": "row_content23"
                },
                {
                    "col_title1": "row_content31",
                    "col_title2": "row_content32",
                    "col_title3": "row_content33"
                }
            ]
        }

        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        
This is the function that
returns the template content
for the given fblock.
Return a content dictionary
This is the function that returns the template content for the given fblock . Return a content dictionary
def generate_template_content(cls, fblock_type=None):
        return {
            "input_button": "checkbox",                     
            "input_value_col_field": "col_title1",          
            "page_detail": True,                            
            "page_detail_content": "key_value",             
            "toolbar": True,                                
            "page_footer": True,                            
            "page_footer_detail": {                         
                "page_size": 1,
                "page_list": [1, 2, "all"]
            },
            "column": [[{
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                },
                {
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                },
                {
                    "title": 'col_title1 name',
                    "field": 'col_title1',
                    "rowspan": 1,
                    "align": 'center',
                    "valign": 'middle',
                    "sortable": True
                }
            ]],
            "data": [
                {
                    "col_title1": "row_content11",
                    "col_title2": "row_content12",
                    "col_title3": "row_content13"
                },
                {
                    "col_title1": "row_content21",
                    "col_title2": "row_content22",
                    "col_title3": "row_content23"
                },
                {
                    "col_title1": "row_content31",
                    "col_title2": "row_content32",
                    "col_title3": "row_content33"
                }
            ]
        }
def generate_template_content ( cls , fblock_type = None ) : return { "input_button" : "checkbox" , "input_value_col_field" : "col_title1" , "page_detail" : True , "page_detail_content" : "key_value" , "toolbar" : True , "page_footer" : True , "page_footer_detail" : { "page_size" : 1 , "page_list" : [ 1 , 2 , "all" ] } , "column" : [ [ { "title" : 'col_title1 name' , "field" : 'col_title1' , "rowspan" : 1 , "align" : 'center' , "valign" : 'middle' , "sortable" : True } , { "title" : 'col_title1 name' , "field" : 'col_title1' , "rowspan" : 1 , "align" : 'center' , "valign" : 'middle' , "sortable" : True } , { "title" : 'col_title1 name' , "field" : 'col_title1' , "rowspan" : 1 , "align" : 'center' , "valign" : 'middle' , "sortable" : True } ] ] , "data" : [ { "col_title1" : "row_content11" , "col_title2" : "row_content12" , "col_title3" : "row_content13" } , { "col_title1" : "row_content21" , "col_title2" : "row_content22" , "col_title3" : "row_content23" } , { "col_title1" : "row_content31" , "col_title2" : "row_content32" , "col_title3" : "row_content33" } ] }
This is the function that
returns the template content
for the given fblock.
This is the function that returns the template content for the given fblock .
"""
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """ # ("checkbox" / "radio" / "none") # if input_button != "none" # (true / false) # if page_detail == true: (key_value / HTML_STR => ["<p>line1</p>", "<p>line2</p>"]) # (true / false) # (true / false) # if page_footer == true
cls
fblock_type