These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites. These cookies help us to personalize our content for you and remember your preferences. These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. ![]() They help us understand how visitors move around the site and which pages are most frequently visited. These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. These cookies are necessary for the website to function and cannot be switched off. Gb.configure_grid_options(rowHeight = 100)ĪgGrid(df, gridOptions=vgo, height=1000, allow_unsafe_jscode=True )Ĭookie settings Strictly necessary cookies Gb.configure_column('Face', cellRenderer=ShowImage) Gb.configure_default_column(editable=True,min_column_width=2) ShowImage = JsCode("""function (params) base64,' + ReadPictureFile(row.ImgPath) ![]() What could be the problem and how to display image inside the AgGrid table i needed in order to accomplish my project.įile path: C:/Users/admin/Desktop/Python/imgs/david-wong.png code: import pyodbcįrom st_aggrid import AgGrid,GridOptionsBuilder,JsCodeįrom st_aggrid import GridUpdateMode,DataReturnModeÄriver = "ODBC Driver 17 for SQL Server", Note: if i try your code it works perfectly with the giving dataframe but once i tried to use it inside my SQL table it crash and doesnât display the picture. or the keyword span together with either a or anThe grid-column-start longhand is set to the value before the slash, and the grid-column-end longhand is set to the value after the slash. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |