bengbengbalabalabeng opened a new issue, #759:
URL: https://github.com/apache/fesod/issues/759

   The documentation contains inaccurate code examples regarding the usage of 
WriteCellData. Specifically, the current examples for setting hyperlinks and 
formulas do not align with the actual API, which may lead to implementation 
failures for users.
   
   ### 1. `WriteCellData` does not have a `hyperlink()` method
   
   <img width="845" height="265" alt="Image" 
src="https://github.com/user-attachments/assets/9f2efac7-0180-43ec-a79b-6d6a29cddcad";
 />
   
   URL: [Fesod Write Extra Hyperlinks - Code 
Example](https://fesod.apache.org/docs/sheet/write/extra#hyperlinks)
   
   **Correct Usage:**
   
   ```java
   WriteCellData<String> cellData = new WriteCellData<>("点击访问");
   HyperlinkData hyperlinkData = new HyperlinkData();
   hyperlinkData.setAddress("https://example.com";);
   hyperlinkData.setHyperlinkType(HyperlinkData.HyperlinkType.URL);
   cellData.setHyperlinkData(hyperlinkData);
   ```
   
   ### 2. `WriteCellData(String)` constructor treats input as plain text, not a 
formula
   
   <img width="790" height="258" alt="Image" 
src="https://github.com/user-attachments/assets/7a418bb6-bee8-4ea8-a943-af52fefc52d2";
 />
   
   URL: [Fesod Write Extra Formulas - Code 
Example](https://fesod.apache.org/docs/sheet/write/extra#formulas)
   
   **Correct Usage:**
   
   ```java
   WriteCellData<String> cellData = new WriteCellData<>();
   FormulaData formulaData = new FormulaData();
   formulaData.setFormulaValue("SUM(A1:A10)");
   // Or
   // formulaData.setFormulaValue("=SUM(A1:A10)");
   cellData.setFormulaData(formulaData);
   ```
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to