This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 4744005eaf9defc87247e94c15d92f1990c7f4a8
Author: Josh Tynjala <[email protected]>
AuthorDate: Wed Apr 30 09:00:36 2025 -0700

    ASDoc: when clicking a package link, the main view shows all classes in the 
package
    
    Previously, only the bottom left pane updated, but that's different from 
what Flex's asdoc did, and it hurts user experience
---
 examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml 
b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
index ffcd1b647a..d4641560a1 100644
--- a/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
+++ b/examples/royale/ASDoc/src/main/royale/ASDocMainView.mxml
@@ -154,6 +154,7 @@ limitations under the License.
                        }
                        else
                        {
+                       currentState = "packageDetail";
                                                packageList.selectedItem = hash;
                         router.title = hash;
                                                packageChangedHandler();
@@ -415,6 +416,7 @@ limitations under the License.
          <js:State name="packages" />
       <js:State name="loading" />
          <js:State name="classDetail" />
+         <js:State name="packageDetail" />
        </rs:states>
     <rs:beads>
         <js:ViewDataBinding />
@@ -458,7 +460,7 @@ limitations under the License.
                 <js:ScrollingViewport />
             </js:beads>
                <js:Label className="paneTitle" id="baseName" width="100%" 
style="fontSize:20"
-                       text="{currentState == 'packages' ? 'All Packages' : 
ASDocModel(applicationModel).currentClass}" />
+                       text="{currentState == 'packages' ? 'All Packages' : 
currentState == 'packageDetail' ? ASDocModel(applicationModel).currentPackage : 
ASDocModel(applicationModel).currentClass}" />
             <js:Group id="packageListPane" width="100%" includeIn="packages">
                    <js:beads>
                        <js:VerticalLayout />
@@ -466,6 +468,13 @@ limitations under the License.
                    <js:List className="paneList" id="packagePaneList" 
dataProvider="{ASDocModel(applicationModel).packageList}" 
                        itemRenderer="AltBGRenderer"/>
             </js:Group>
+            <js:Group id="pacakgeDetailListPane" width="100%" 
includeIn="packageDetail">
+                   <js:beads>
+                       <js:VerticalLayout />
+                   </js:beads>
+                   <js:List className="paneList" id="packageDetailPaneList" 
dataProvider="{ASDocModel(applicationModel).classList}" 
+                       itemRenderer="AltBGRenderer"/>
+            </js:Group>
             <js:Group id="loadingPane" width="100%" includeIn="loading">
                 <js:Label className="loading" text="Loading..." />
             </js:Group>

Reply via email to