Widget 3
Financial Performance
การ์ดผลประกอบการสำคัญสไตล์ widget3
การ์ดผลประกอบการสำคัญสไตล์ widget3 — แท็บเลือกปี (radio) พร้อมกราฟแท่ง ECharts 4 ซีรีส์ (รายได้ / สินทรัพย์ / หนี้สิน / ส่วนของผู้ถือหุ้น) และปุ่มวงกลมมุมการ์ด
Set
widget3Category financialScope .stk-w3-financial-performanceSet base widget3Examples
แต่ละหัวข้อคือ UI คนละรูปแบบ ส่วนขนาดคอลัมน์เป็น layout ของรูปแบบเดียวกัน
การ์ดกราฟแท่งพร้อมแท็บปี
UI รูปแบบที่ 1
Composition
โครงสร้างส่วนประกอบหลักที่สรุปจาก HTML ของแต่ละ variant โดยตัด layout wrappers ออก
Variant
defaultLoading composition…Content Schema
อ่าน schema เต็มและตัวอย่างค่าจาก get_widget ฟิลด์หลัก:
titleview_all_linktab1_labeltab2_labeltab3_label
Asset URLs
CSS: https://stackui-cdn.intern-studio.com/widgets/widget3/financial-performance/financial-performance.css
JS: https://stackui-cdn.intern-studio.com/widgets/widget3/financial-performance/financial-performance.js
Preview: https://stackui-cdn.intern-studio.com/widgets/widget3/financial-performance/preview.html
Set base: ดู dependencies.setBase จาก get_widget และโหลดก่อน widget CSSใช้ get_core ก่อนหนึ่งครั้ง จากนั้นเรียก get_widget โดยส่ง id="financial-performance" และ set="widget3" เพื่อรับ HTML, CSS, JavaScript, dependencies และ URL ของ asset ที่ตรงกับ environment

