> For the complete documentation index, see [llms.txt](https://post.cagdaskarademir.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://post.cagdaskarademir.com/post-2019/bootbox.js-nedir-nasil-kullanilir.md).

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

![](/files/-Lv2YIfaACbUYQ7kW7I7)

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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
