# Bootbox.js Nedir, Nasıl Kullanılır?

![](https://3110286875-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LpwSt0BdhhtnMy9YmXA%2F-Lv2VKcOOOnNOiLZNfgR%2F-Lv2YIfaACbUYQ7kW7I7%2F0_HSnxfjU15yjd4Hre.png?alt=media\&token=cb7a9ffa-5b7e-4024-883e-e1589f1383f7)

Bootboxjs, Bootstrap Modal dialog pencerelerini kolay bir şekilde oluşturabilmemizi sağlayan çok kullanışlı bir kütüphanedir. Normalde bir modal ekranı oluşturmak için modal ekranına uygun bir DOM nesnesi oluşturmamız veya gizleyebilmemiz için DOM nesnesini gizlememiz gerekirken, Bootboxjs ile bu işlemleri tek bir satır kod ile yapabiliyoruz.

Bootboxjs, bize 4 farklı template seçeneği sunuyor.&#x20;

* Alert
* Confirm
* Prompt
* Custom

## Kütüphane Bilgileri <a href="#id-0924" id="id-0924"></a>

Kütüphaneye [http://bootboxjs.com/ ](http://bootboxjs.com/)adresinden ulaşabilirsiniz.

Kaynak kodlarına ise githup üzerinden aşağıdaki adresinden ulaşabilirsiniz.

{% embed url="<https://github.com/makeusabrew/bootbox>" %}

## Template Örnekleri

### Alert Dialog (Mesaj Ekranları)

Alert diyaloglarını göstermek için

{% embed url="<https://gist.github.com/cagdaskarademir/e8d9517cdc86e4e0cacd84b40f9a4118>" %}

### Confirm (Onaylama Ekranları)

Onay diyalog ekranlarını göstermek için

{% embed url="<https://gist.github.com/cagdaskarademir/92ef8d932a53269b1656f91ec73eb51c>" %}

### Prompt (Veri Ekranları)

Bazen kullanıcıdan parametreler için veriler almamız gerekebilir. Bu ekranlar için kullanabileceğimiz kod

{% embed url="<https://gist.github.com/cagdaskarademir/df7ea63a69fc4a45a2364eef22016e95>" %}

### Custom (Özel Ekranlar)

Asıl önemli ve eğlenceli olan bölüme geldik. Bootstrap Modal bize ne kadar esneklik veriyorsa aynı şekilde Bootbox.js’de aynı özellikleri kolay bir şekilde kullanmamızı sağlıyor.

Özel diyaloglar oluşturmak için aşağıdaki kodu kullanabiliriz.

{% embed url="<https://gist.github.com/cagdaskarademir/54bbbd8d5a305daf8e6aa63c46c0f221>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://post.cagdaskarademir.com/post-2019/bootbox.js-nedir-nasil-kullanilir.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
