forked from mbk-lab/rui_orig
				
			Updated Readme
This commit is contained in:
		
							parent
							
								
									eed42fd295
								
							
						
					
					
						commit
						5b545acbd1
					
				
							
								
								
									
										12
									
								
								README-ru.md
								
								
								
								
							
							
						
						
									
										12
									
								
								README-ru.md
								
								
								
								
							|  | @ -467,6 +467,18 @@ View имеет ряд свойств, таких как высота, шири | |||
| Данная функция ищет дочерний View с идентификатором id. Поиск начинается с rootView. | ||||
| Если View не найден, то функция возвращает nil и в лог записывается сообщение об ошибке. | ||||
| 
 | ||||
| При поиске можно задавать цепочку идентификаторов. В этом случае они разделяются символом '/'. | ||||
| Например | ||||
| 
 | ||||
| 	view := rui.ViewByID(rootView, "id1/id2") | ||||
| 
 | ||||
| эквивалентно | ||||
| 
 | ||||
| 	var view rui.View = nil | ||||
| 	if view1 := rui.ViewByID(rootView, "id1"); view1 != nil { | ||||
| 		view = rui.ViewByID(view1, "id2") | ||||
| 	} | ||||
| 
 | ||||
| Обычно id устанавливается при создании View и в дальнейшем не меняется. | ||||
| Но это необязательное условие. Вы можете поменять id в любой момент. | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										12
									
								
								README.md
								
								
								
								
							
							
						
						
									
										12
									
								
								README.md
								
								
								
								
							|  | @ -469,6 +469,18 @@ To do this, use the ViewByID function | |||
| This function looks for a child View with id. The search starts from rootView. | ||||
| If View is not found, the function returns nil and an error message is written to the log. | ||||
| 
 | ||||
| When searching, you can specify a chain of identifiers. In this case, they must be separated by the '/' character. | ||||
| For example | ||||
| 
 | ||||
| 	view := rui.ViewByID(rootView, "id1/id2") | ||||
| 
 | ||||
| equivalent to | ||||
| 
 | ||||
| 	var view rui.View = nil | ||||
| 	if view1 := rui.ViewByID(rootView, "id1"); view1 != nil { | ||||
| 		view = rui.ViewByID(view1, "id2") | ||||
| 	} | ||||
| 
 | ||||
| Usually id is set when the View is created and is not changed later. | ||||
| But this is an optional condition. You can change the id at any time. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue